package com.RecipeBook.common;
import java.util.ArrayList;
//import android.content.Context;

public class Recipe {
	
	// A Recipe has: Steps, Ingredients, a picture, name, 
	
	private int id = 0;
	private String name = "Test Recipe";
	private String imageFile = "";
	private int rating = 0;
	private int cookingTime = 60; //minutes
	
	//private DataHelper dh;	
	//private Context context;

	private ArrayList<Ingredient> ingredients;
	private ArrayList<RecipeStep> steps;
	//private ArrayList<String> tags;
	
	public Recipe (String name, String image)
	{
		this.name = name;
		this.imageFile = image;
		//dh = new DataHelper(context);
		ingredients = new ArrayList<Ingredient>();	
		steps = new ArrayList<RecipeStep>();
		
	}
	
	public Recipe (int id, String name, int rating, int time, ArrayList<Ingredient> ingredients, ArrayList<RecipeStep> steps, String imageURL) {
		this.id = id;
		this.name = name;
		this.rating = rating;
		this.cookingTime = time;
		this.ingredients = ingredients;
		this.steps = steps;
		this.imageFile = imageURL;
	}
	
	public String getName() {
		return name;
	}

	public String getImageFile() {
		return imageFile;
	}

	public int getRating() {
		return rating;
	}

	public void setRating(int rating) {
		this.rating = rating;
	}

	public int getCookingTime() {
		return cookingTime;
	}

	public ArrayList<Ingredient> getIngredients() {
		return ingredients;
	}

	public ArrayList<RecipeStep> getSteps() {
		return steps;
	}
/*
	public ArrayList<String> getTags() {
		return tags;
	}
	*/

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

}
